package org.vectrics.project.task;

import java.util.Date;

import org.vectrics.common.db.Auditable;
import org.vectrics.common.db.RecordObject;
import org.vectrics.user.Person;

/**
 * @author MMoore
 *
 */
public class TaskPrerequisite implements RecordObject, Auditable {
	private Long id = null;
	private Task task = null;
	private Task prerequisiteTask = null;
	private Person createdBy = null;
	private Person lastModifiedBy = null;
	private Date lastModifiedDate = null;
	private Date createdDate = null;
	
	/**
	 * @return Returns the id.
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id The id to set.
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @return Returns the prerequisiteTask.
	 */
	public Task getPrerequisiteTask() {
		return prerequisiteTask;
	}
	/**
	 * @param prerequisiteTask The prerequisiteTask to set.
	 */
	public void setPrerequisiteTask(Task prerequisiteTask) {
		this.prerequisiteTask = prerequisiteTask;
	}
	/**
	 * @return Returns the task.
	 */
	public Task getTask() {
		return task;
	}
	/**
	 * @param task The task to set.
	 */
	public void setTask(Task task) {
		this.task = task;
	}
	/**
	 * @return Returns the createdBy.
	 */
	public Person getCreatedBy() {
		return createdBy;
	}
	/**
	 * @param createdBy The createdBy to set.
	 */
	public void setCreatedBy(Person createdBy) {
		this.createdBy = createdBy;
	}
	
	/**
	 * @return Returns the createdDate.
	 */
	public Date getCreatedDate() {
		return createdDate;
	}
	/**
	 * @param createdDate The createdDate to set.
	 */
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	/**
	 * @return Returns the lastModifiedBy.
	 */
	public Person getLastModifiedBy() {
		return lastModifiedBy;
	}
	/**
	 * @param lastModifiedBy The lastModifiedBy to set.
	 */
	public void setLastModifiedBy(Person lastModifiedBy) {
		this.lastModifiedBy = lastModifiedBy;
	}
	/**
	 * @return Returns the lastModifiedDate.
	 */
	public Date getLastModifiedDate() {
		return lastModifiedDate;
	}
	/**
	 * @param lastModifiedDate The lastModifiedDate to set.
	 */
	public void setLastModifiedDate(Date lastModifiedDate) {
		this.lastModifiedDate = lastModifiedDate;
	}
	

	public boolean logEntityChanges() {
		return(false);
	}
	
}
